<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加车次</title>
</head>
<body>
	<jsp:include page="../common/head.jsp"></jsp:include>
	<div class="content">
		<jsp:include page="../common/bar_left.jsp"></jsp:include>
				<div class="row">
				<div class="form">
			<form class="form-horizontal w550" role="form" action="<%=basePath%>front/bus/busAdd_handle.jsp" method="post">
				<div class="form-group">
					<label for="inputEmail3" class="col-sm-2 control-label">汽车车次</label>
					<div class="col-sm-10">
						<input type="text" name="num" class="form-control" id="inputEmail3" placeholder="车次">
					</div>
				</div>
				<div class="form-group">
					<label for="inputName3" class="col-sm-2 control-label">出发站</label>
					<div class="col-sm-10">
							<select name="oriStation1" class="form-control w150" id="ori_province"><span style="color: red;">*</span></select> 
							<select name="oriStation2" class="form-control w150" id="ori_city"><option value="">选择城市</option>	</select>
					</div>
				</div>
				<div class="form-group">
					<label for="inputName3" class="col-sm-2 control-label">终点站</label>
					<div class="col-sm-10">
						<select name="desStation1" class="form-control w150" id="des_province"><span style="color: red;">*</span></select> 
						<select name="desStation2" class="form-control w150" id="des_city"><option value="">选择城市</option></select>
					</div>
				</div>
				<div class="form-group">
					<label for="inputPassword3" class="col-sm-2 control-label">出发时间</label>
					<div class="col-sm-10">
						<input type="text" name="time" class="form-control" placeholder="出发时间">
					</div>
				</div>
				<div class="form-group">
					<label for="inputPassword3" class="col-sm-2 control-label">价格</label>
					<div class="col-sm-10">
						<input type="text" name="price" class="form-control"
							id="inputPassword3" placeholder="价格">
					</div>
				</div>
				<div class="form-group">
					<label for="inputPassword3" class="col-sm-2 control-label">座位数</label>
					<div class="col-sm-10">
						<input type="text" name="total" class="form-control" placeholder="座位数">
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-2 col-sm-10">
						<button type="submit" class="btn btn-default">提　交</button>
					</div>
				</div>
			</form>
</div>
		</div>
	</div>
	<jsp:include page="../common/footer.jsp"></jsp:include>
	<script type="text/javascript" src="<%=basePath%>js/map/map_data.js" ></script>
	<script type="text/javascript" src="<%=basePath%>js/map/map_js.js"></script>
	<script type="text/javascript">
	$(document).ready(function(){
		var setSelect = function(tar,val){
			tar.val(val);
		}
		//初始化省市
		init("ori_province",$('#curProvince').val(),"ori_city",$('#curCity').val(),"hometown","");
		init("des_province",$('#curProvince').val(),"des_city",$('#ori_curCity').val(),"hometown","");
	})
	</script>
</body>
</html>